<Project>
  <PropertyGroup>
    <!-- These need to be set here because the root Directory.Build.props sets up the intermediate path early -->
    <Configuration>Release</Configuration>
    <OutputType>Exe</OutputType>
    <TargetOS>browser</TargetOS>
    <TargetArchitecture>wasm</TargetArchitecture>
    <RuntimeIdentifier>browser-wasm</RuntimeIdentifier>
    <!-- Suppress experimental trim warnings. This can be removed when we get a preview6 SDK. -->
    <NoWarn>$(NoWarn);IL2121</NoWarn>
  </PropertyGroup>

  <Import Project="..\Directory.Build.props"/>

  <PropertyGroup>
    <OutputPath>bin</OutputPath>
    <WasmAppDir>$(MSBuildProjectDirectory)\bin\$(Configuration)\AppBundle\</WasmAppDir>
  </PropertyGroup>
  <PropertyGroup Condition="'$(Configuration)' == 'Debug'">
    <WasmNativeStrip>false</WasmNativeStrip>
  </PropertyGroup>

  <PropertyGroup Condition="'$(Configuration)' != 'Debug'">
    <!-- Runtime feature defaults to trim unnecessary code -->
    <EventSourceSupport>false</EventSourceSupport>
    <UseSystemResourceKeys>true</UseSystemResourceKeys>
    <EnableUnsafeUTF7Encoding>false</EnableUnsafeUTF7Encoding>
    <HttpActivityPropagationSupport>false</HttpActivityPropagationSupport>
    <DebuggerSupport>false</DebuggerSupport>
    <WasmEmitSymbolMap>true</WasmEmitSymbolMap>
  </PropertyGroup>

  <ItemGroup>
    <Compile Include="$(MSBuildThisFileDirectory)CommonAssemblyInfo.cs" />
  </ItemGroup>

  <!-- Import late, so properties like $(ArtifactsBinDir) are set -->
  <Import Project="$(BrowserProjectRoot)build\WasmApp.InTree.props" />
</Project>
